import "reflect-metadata";
// import { ContentServers } from "./server";

// const content = {
    // title: 'Html学习',
    // class: 'html',
    // data: '<div>html所见即所得</div>',
    // time: '2017/01/02',
    // author: '彭浪',
    // comment: ['好'], 
    // description: 'html是前端的重要元素'
// }

// ContentServers.add(content);

import Express from "express"
import {RouterContent} from './api/content';
import {RouterMessage} from './api/message';
var history = require('connect-history-api-fallback');

const app = Express();

app.use(Express.json());

app.use(history());
app.use('/content', RouterContent)
app.use('/message', RouterMessage)

app.listen(3000);
